Skip to content

Fix MSP spouse deeming and resource scoping#7893

Merged
PavelMakarchuk merged 4 commits intoPolicyEngine:mainfrom
daphnehanse11:codex/msp-ssi-deeming-assets
Apr 13, 2026
Merged

Fix MSP spouse deeming and resource scoping#7893
PavelMakarchuk merged 4 commits intoPolicyEngine:mainfrom
daphnehanse11:codex/msp-ssi-deeming-assets

Conversation

@daphnehanse11
Copy link
Copy Markdown
Collaborator

Summary

  • apply spouse deeming in MSP countable income and compare married applicants using spouse-aware income
  • scope MSP resources to the applicant and spouse instead of the full SPM unit, and align MSP eligibility with the resolved MSP category
  • tighten MSP category boundary tests and backfill Medicare premium history used by MSP benefit coverage

Testing

  • uv run --extra dev ruff format .
  • uv run --extra dev ruff check policyengine_us/variables/gov/hhs/medicare/savings_programs policyengine_us/parameters/gov/hhs/medicare/savings_programs policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs
  • uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs -c policyengine_us
  • uv run --extra dev ruff check policyengine_us/parameters/gov/hhs/medicare policyengine_us/tests/policy/baseline/gov/hhs/medicare changelog.d/codex-msp-ssi-deeming-assets.fixed.md
  • uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/hhs/medicare/eligibility/base_part_a_premium.yaml policyengine_us/tests/policy/baseline/gov/hhs/medicare/eligibility/base_part_b_premium.yaml policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/msp_benefit_value.yaml -c policyengine_us

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (a982df1) to head (5c1030f).
⚠️ Report is 253 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #7893      +/-   ##
===========================================
+ Coverage   92.72%   100.00%   +7.27%     
===========================================
  Files           3         9       +6     
  Lines          55       159     +104     
  Branches        2         0       -2     
===========================================
+ Hits           51       159     +108     
+ Misses          3         0       -3     
+ Partials        1         0       -1     
Flag Coverage Δ
unittests 100.00% <100.00%> (+7.27%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Remove cross-variable MSPCategory import; use .possible_values.NONE
- Break nested where() in msp_countable_income into named variables
- Fix trailing zeros in Part B premiums (170.10→170.1, etc.)
- Add 2021 CMS reference to Part A full_premium.yaml
- Remove duplicate reference URLs in asset limit YAMLs
- Add deeming happy-path test proving the code path executes
- Add 2026 Part A full premium test ($565)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@PavelMakarchuk PavelMakarchuk merged commit 07b22f2 into PolicyEngine:main Apr 13, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants